<?php
class UserController extends Controller
{
    private $view;
    private $model;
    
    private $error = array(
        0   => array(//register error information
            
        ),
        1   => array(//login error information
            
        ),
    );
    
    public function __construct()
    {
        parent::__construct();
        $this->view     = $this->getView();
        //$this->model    = $this->getModel('user');
    }
    
    /**
     * check the data
     */
    public function check()
    {
        
    }
    
    /**
     * user registeration
     */
    public function register()
    {
       
        echo 'User register module.';
    }
    
    /**
     * register status
     */
    public function status()
    {
       
    }
    
    public function resendMail()
    {
        
    }
    
    /**
     * user email verify
     */
    public function verify()
    {
       
    }
    
    /**
     * user login
     */
    public function login()
    {
        echo 'User login module.';
    }
    
    
    public function logout()
    {
        //$this->model->logout();
        $this->redirect('user/login');
    }
}